package com.jasonzqshen.ifm.collections.treeCollection.arguments;

import com.jasonzqshen.ifm.collections.treeCollection.*;

public class TreeObjectAddArgs extends TreeCollectionArgs {

    private NonLeaf parent;

    private NonRoot instance;

    /**
     * Add instance into parent
     * 
     * @param sender
     * @param parent
     * @param instance
     */
    public TreeObjectAddArgs(Object sender, NonLeaf parent, NonRoot instance) {
        super(sender);
        this.parent = parent;
        this.instance = instance;
    }

    public NonLeaf getParent() {
        return this.parent;
    }

    public NonRoot getInstancSe() {
        return this.instance;
    }

}
